#ifndef REGISTERWIN_H
#define REGISTERWIN_H

#include <QWidget>
#include <QFileDialog>
#include <qobjectface.h>
#include <QSqlTableModel>
#include <QSqlRecord>
#include <QMessageBox>
#include <opencv2/opencv.hpp>
namespace Ui {
class Registerwin;
}

class Registerwin : public QWidget
{
    Q_OBJECT

public:
    explicit Registerwin(QWidget *parent = nullptr);
    ~Registerwin();

private slots:
    void on_resetpb_clicked();

    void on_addpicpb_clicked();

    void on_rigisterpb_clicked();

    void timerEvent(QTimerEvent*e);

    void on_opencmrpb_clicked();

    void on_takephotospb_clicked();

private:
    Ui::Registerwin *ui;
    qobjectface object;
    cv::VideoCapture cap;// 获取摄像头
    int id;             //定时器多的时候来区别是哪个定时器
    cv::Mat image;
};

#endif // REGISTERWIN_H
